<form name="editForm">
	<div class="form-group">
	    <div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>部门编码：</div>
			<div class="col-sm-8 col-md-8 form-input" ng-class="{ 'has-error' : editForm.departmentCode.$dirty && editForm.departmentCode.$invalid}">
			   <input name="departmentCode" class="form-control"ng-model="editModel.department.departmentCode" maxLength="45" required>
			</div>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>部门名称：</div>
			<div class="col-sm-8 col-md-8 form-input" ng-class="{ 'has-error' : editForm.departmentName.$dirty && editForm.departmentName.$invalid}">
			   <input name="departmentName" class="form-control"ng-model="editModel.department.departmentName" maxLength="60" required>
			</div>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>公司：</div>
			<div class="col-sm-8 col-md-8 form-input">
				<div class="input-group">
					<input name="corporation" 
						   type="text" class="form-control" disabled 
						   ng-model="{true:'无',
									  false: '(' + editModel.department.corporationCode + ')'+editModel.department.corporationName}
									  [editModel.department.corporationId==null]">
					<span class="input-group-btn">
						<button type="button" 
							data-toggle="modal" 
							ng-click="viewCorporationModel.chooseDelete()"
							class="btn btn-danger btn-primary"
							data-backdrop="static">清空</button>
						<button type="button" 
							data-toggle="modal" 
							class="btn btn-primary" 
							data-backdrop="static" 
							ng-click="viewCorporationModel.chooseUpde()">选择</button>
					</span>
				</div>
			</div>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">上级部门：</div>
			<div class="col-sm-8 col-md-8 form-input" >
				<div class="input-group">
					<input name="upDepartment" 
						   type="text" class="form-control" disabled 
						   ng-model="{true:'无',
									  false:'(' + editModel.department.parentDepartmentCode + ')'+editModel.department.parentDepartmentName}
									  [editModel.department.parentDepartmentId==null]">
					<span class="input-group-btn">
						<button type="button" 
							data-toggle="modal" 
							ng-click="editModel.chooseDelete()"
							class="btn btn-danger btn-primary"
							data-backdrop="static">清空</button>
						<button type="button" 
							data-toggle="modal" 
							class="btn btn-primary" 
							data-backdrop="static" 
							ng-click="editModel.chooseUpde()">选择</button>
					</span>
				</div>
			</div>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">组织架构级别：</div>
			<div class="col-sm-8 col-md-8 form-input">
			   <select name="orgLevel" id="orgLevel" class="form-control" ng-model="editModel.department.orgLevel">
                                    <option value=""></option>
                                    <option value="1">1</option>
                                    <option value="2">2</option>
                                    <option value="3">3</option>
                                    <option value="4">4</option>
                                    <option value="5">5</option>
               </select>
			</div>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">描述：</div>
			<div class="col-sm-8 col-md-8 form-input">
			   <textarea ng-model="editModel.department.description" class="form-control elastic __web-inspector-hide-shortcut__" rows="3" maxLength="255"></textarea>
			</div>
		</div>
	</div>	
</form>
